package com.changanw.zipkin1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Hellocontroller {
    public final static Logger logger = LoggerFactory.getLogger(Hellocontroller.class);

    @GetMapping("/hello")
    public String hello(String name){
        logger.info("zipkin1-hello");
        return "hello " + name + " !";
    }
}
